<template>
  <div id="takephotos">
    <div class="header">
      <ul class="list">
        <li class="list-1">
          <img  @click="goback"   src="../assets/pyimg/error.png" alt="" class="img-1" />
        </li>
        <li class="list-1"><img src="" alt="" /></li>
        <li class="list-1">
          <img src="../assets/pyimg/more.png" alt="" class="img-1" />
        </li>
        <li class="list-1">
          <img src="../assets/pyimg/reverse.png" alt="" class="img-1" />
        </li>
      </ul>
    </div>
    <div class="main">
      <div class="imgbox">
        <img src="../assets/pyimg/back.png" alt="" />
        <img src="../assets/pyimg/back.png" alt="" />
      </div>
    </div>
    <div class="bot-box">
      <div class="selector">
        <img src="../assets/pyimg/selector.png" alt="" class="sec" />
        <span class="sp1">经典</span>
        <span class="sp2">原生</span>
      </div>
      <div class="footer">
        <ul>
          <li>
            <img src="../assets/pyimg/paper.png" alt="" />
            <p>贴纸</p>
          </li>
          <li>
            <img src="../assets/pyimg/style.png" alt="" />
            <p>风格</p>
          </li>
          <li>
            <img
              src="../assets/pyimg/circle1.png"
              alt=""
              class="circle"
              @click="goback"
            />
          </li>
          <li>
            <img src="../assets/pyimg/filter.png" alt="" />
            <p>滤镜</p>
          </li>
          <li>
            <img src="../assets/pyimg/magic.png" alt="" />
            <p>美颜</p>
          </li>
        </ul>
      </div>
      <div class="bottom">
        <p class="p1">视频</p>
        <p class="p2">拍摄</p>
      </div>
    </div>
  </div>
</template>
<script>
import { useRouter, useRoute } from "vue-router";
export default {
  name: "TakePhotos",
  setup() {
    const router = useRouter();
    const route = useRoute();
    const goback = function () {
      router.push("/Camera");
    };
    return {
      route,
      router,
      goback,
    };
  },
};
</script>
<style lang="less" scoped>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
#takephotos {
  height: 100%;
  .header {
    padding-top: 20px;
    height: 60px;
    .list {
      height: 30px;
      display: flex;
      justify-content: space-between;
      padding: 0.08rem 0.5rem;
    }
    .list-1 {
      height: 0.1rem;
      text-align: center;
    }
    .img-1 {
      width: 20px;
    }
  }
  .main {
    margin-top: 20px;
    border-top: 1px solid lightslategray;
    border-bottom: 1px solid lightslategray;
    width: 414px;
    height: 400px;
    .imgbox {
      height: 475px;
      overflow: hidden;
      border-bottom: 1px solid lightslategray;
      img {
        width: 414px;
        height: 400px;
      }
    }
  }
  .bot-box {
    position: fixed;
    bottom: 0;
    .selector {
      height: 60px;
      position: relative;
      width: 414px;
      .sec {
        position: absolute;
        height: 40px;
        top: 10px;
        left: 100px;
      }
      .sp1 {
        position: absolute;
        font-size: 20px;
        top: 15px;
        left: 150px;
      }
      .sp2 {
        position: absolute;
        font-size: 20px;
        top: 15px;
        left: 240px;
      }
    }
    .footer {
      height: 90px;
      ul {
        display: flex;
        justify-content: space-between;
        height: 80px;
        li {
          height: 60px;
          text-align: center;
        }
        .circle {
          width: 50px;
        }
        img {
          width: 30px;
        }
        p {
          font-size: 0.3rem;
          color: #000000;
        }
      }
    }
    .bottom {
      position: relative;
      margin-top: -10px;
      height: 50px;
      .p1 {
        position: absolute;
        font-size: 20px;
        margin-left: 150px;
      }
      .p2 {
        position: absolute;
        font-size: 20px;
        margin-left: 210px;
      } 
    }
  }
}
</style>
